package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.PXianshi;

import java.util.List;
import java.util.Map;

@DBMapper
public interface PXianshiMapper {
    int deleteByPrimaryKey(Integer xianshiId);

    int insert(PXianshi record);

    int insertSelective(PXianshi record);

    PXianshi selectByPrimaryKey(Integer xianshiId);

    int updateByPrimaryKeySelective(PXianshi record);

    int updateByPrimaryKey(PXianshi record);

    /**
     * 根据条件查询现实抢购列表
     * @param pXianshi
     * @return
     */
    List<PXianshi> findTimeLimitedBuyingActive(PXianshi pXianshi);

    List<PXianshi> findPXianShiByCondition(PXianshi pxianshi);

    void updatePXianShiStateBatch(Map<String, Object> pxianshi);

    public List getValidXianshi();
}